package cn.sstir.api.common.exception;


import cn.sstir.fastspringboot.core.exception.AbstractBaseExceptionEnum;

/**
 * @title: ApiSignatureExceptionEnum
 * @description: Api枚举异常
 * @author: fli
 * @email: fli@sstir.cn
 * @date: 2019/8/13 16:04
 */
public enum ApiSignatureExceptionEnum implements AbstractBaseExceptionEnum {

    CLIENTID_ERROR(100001, "无效的clientId"),
    SIGN_ERROR(100002, "签名错误"),
    EXPIRE_ERROR(100003, "签名已过期"),
    TIMESTAMP_ERROR(100004,"时间戳格式错误"),

    ;


    ApiSignatureExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;
    private String message;

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
